@font-face {
  font-family: 'SourceHanSansSC-Regular-2';
  src: url('~/assets/font-family/SourceHanSansSC-Regular-2.otf');
}

@font-face {
  font-family: 'ShangShouSaTi';
  src: url('~/assets/font-family/ShangShouSaTi.ttf');
}

body {
  overflow-y: overlay;
}

body, p {
  margin: 0;
  padding: 0;
}

.w-1100 {
  width: 1100px;
  margin: 0 auto;
}

.w-1300 {
  width: 1300px;
  margin: 0 auto;
}

.w-1010 {
  width: 1010px;
  margin: 0 auto;
}

.w-1200 {
  width: 1200px;
  margin: 0 auto;
}

.w-960 {
  width: 960px;
  margin: 0 auto;
}

.w-720 {
  width: 720px;
  margin: 0 auto;
}

.w-750 {
  width: 750px;
  margin: 0 auto;
}

input {
  &::placeholder {
    font-size: 12px;
  }
}

.shart-list-block,
.circle-content-block {
  .share-block {
    background: #fff;
    margin-bottom: 12px;
    &:last-child {
      margin-bottom: 0;
    }
    .top {
      display: flex;
      padding: 20px;
      position: relative;
      .right-info {
        width: 0;
        flex: 1;
        padding-left: 14px;
        .nickname {
          font-size: 15px;
          a {
            color: #4c4c4c;
            &:hover {
              color: var(--hover-primary-color);
            }
          }
        }
        .desc {
          padding-bottom: 10px;
          font-size: 12px;
          color: #999;
        }
        .share-info {
          color: #000;
          white-space: pre-wrap;
          line-height: 26px;
        }
        .limit-box {
          margin-top: 6px;
          span {
            color: var(--primary-color);
            cursor: pointer;
          }
        }
        .img-box {
          padding: 16px 0;
          display: flex;
          .share-img {
            margin-right: 4px;
            img {
              display: block;
              flex: 0 1 auto;
              max-width: 100%;
              min-width: 110px;
              cursor: zoom-in;
              min-height: 110px;
              max-height: 230px;
              -o-object-fit: cover;
              object-fit: cover;
            }
            &:nth-child(1):nth-last-child(1) {
              border-radius: 4px;
              overflow: hidden;
              img {
                width: 200px;
              }
            }
            &:nth-child(1):nth-last-child(2),
            &:nth-child(2):nth-last-child(1),
            &:nth-child(3):nth-last-child(1),
            &:nth-child(2):nth-last-child(2),
            &:nth-child(1):nth-last-child(3) {
              img {
                width: 110px;
                height: 110px;
              }
            }
          }
        }
        .circle-block-name {
          border-radius: 16px;
          background: var(--select-primary-color);
          padding: 4px 12px;
          margin-top: 12px;
          display: inline-flex;
          align-items: center;
          font-size: 0;
          p {
            font-size: 12px;
            color: var(--primary-color);
          }
          img {
            width: 18px;
            margin-right: 2px;
          }
        }
      }
      .operate-fixed {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 10;
        cursor: pointer;
      }
    }
    .agree-users {
      display: flex;
      justify-content: flex-end;
      padding: 0 12px 12px;
      .agree-users-modal {
        position: relative;
        margin-right: 6px;
        .single-user {
          width: 20px;
          height: 20px;
          position: absolute;
          box-shadow: 0 0 8px 2px rgba(0,0,0,0.1);
          overflow: hidden;
          border-radius: 50%;
          top: 5px;
          background: #fff;
          img {
            width: 16px;
            height: 16px;
            object-fit: cover;
            display: block;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-8px, -8px);
            border-radius: 50%;
          }
        }
      }
      p {
        color: #999;
        font-size: 12px;
        line-height: 30px;
      }
    }
    .bottom {
      border-top: 1px solid #f1f1f190;
      display: flex;
      a, div {
        width: 50%;
        text-align: center;
        padding: 10px 0;
        cursor: pointer;
        color: #86909c;
        position: relative;
        a {
          color: #86909c;
        }
        &:hover {
          opacity: 0.8;
        }
        &.like {
          color: var(--primary-color);
        }
        i {
          font-size: 16px;
        }
        span {
          position: relative;
          top: 0;
        }
        &:first-child:before {
          content: "";
          width: 1px;
          height: 14px;
          background: #ebe8e8;
          right: 0;
          top: 14px;
          position: absolute;
        }
      }
    }
  }
}

.articlelist-content {
  background: #fff;
  .model {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f190;
    padding: 12px 20px;
    position: relative;
    align-items: center;
    cursor: pointer;
    &:hover {
      background: #fafafa;
    }
    .l {
      width: 0;
      flex: 1;
      .user-info {
        display: flex;
        padding: 6px 0;
        p {
          font-size: 14px;
          margin-right: 24px;
          position: relative;
          color: #4e5969;
          a {
            color: #4e5969;
            &:hover {
              text-decoration: underline;
            }
          }
          &:not(:last-of-type) {
            &:before {
              content: '';
              width: 1px;
              position: absolute;
              height: 12px;
              background: #dedddd;
              top: 5px;
              right: -12px;
              opacity: 0.6;
            }
          }
          em {
            font-size: 12px;
            font-style: normal;
            margin-right: 20px;
            position: relative;
            color: #999;
            &:not(:last-of-type):after {
              content: '·';
              font-size: 22px;
              position: absolute;
              right: -12px;
              top: -9px;
            }
            &.category-name {
              background-color: #f2f3f5;
              padding: 3px 6px;
              border-radius: 2px;
              color: #8a919f;
              font-size: 11px;
            }
          }
        }
        .status {
          font-size: 11px;
          padding: 2px 6px 2px;
          border-radius: 3px;
          background: rgba(238, 99, 99, 0.18824);
          color: #EE6363;
          margin-left: -30px;
          margin-top: 1px;
        }
      }
      .article-title {
        font-size: 17px;
        color: #000;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .article-desc {
        color: #86909c;
        font-size: 12px;
        padding: 6px 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 500;
      }
      .a-num {
        display: flex;
        p {
          margin-right: 32px;
          display: flex;
          align-items: center;
          position: relative;
          color: #4e5969;
          &:not(:last-child):after {
            content: '';
            width: 1px;
            position: absolute;
            height: 11px;
            background: #ede3e3;
            top: 7px;
            right: -16px;
          }
          &.is-liker {
            color: var(--primary-color);
          }
          span {
            font-size: 12px;
            margin-left: 4px;
            font-weight: bold;
          }
          &:not(:first-child) {
            &:hover {
              color: var(--primary-color);
            }
          }
          i {
            font-size: 16px;
          }
        }
      }
    }
    .r {
      margin-left: 30px;
      flex-shrink: 0;
      border-radius: 3px;
      overflow: hidden;
      width: 120px;
      height: 68px;
      img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
      }
    }
    .operate-fixed {
      position: absolute;
      top: 10px;
      right: 10px;
      z-index: 10;
    }
  }
}

.artile-list-operate,
.circle-list-operate {
  width: 90px;
  padding: 6px 0;
  a,
  p {
    color: #4c4c4c;
    display: block;
    font-size: 12px;
    line-height: 30px;
    padding: 0 10px;
    cursor: pointer;
    user-select: none;
    transition: 0;
    i {
      margin-right: 6px;
      font-size: 14px;
    }
    &:hover {
      background-color: #eff2f5;
    }
  }
}

.share-circle-content {
  .input-block {
    .ant-upload-picture-card-wrapper {
      .ant-upload-select-picture-card {
        width: 60px;
        height: 60px;
        .ant-upload {
          i {
            font-size: 22px;
          }
          &-text {
            display: none;
          }
        }
      }
      .ant-upload-list-picture-card {
        .ant-upload-list-picture-card-container {
          width: 60px;
          height: 60px;
          .ant-upload-list-item {
            width: 60px;
            height: 60px;
            padding: 0;
            border: 1px solid #f1f1f1;
            overflow: hidden;
          }
        }
      }
    }
  }
  .publish-group {
    .left-gropu {
      .ant-upload-list {
        display: none;
      }
    }
  }
}

.login-wrapper {
  position: fixed;
  background: rgba(0, 0, 0, 0.3);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  .modal {
    padding: 16px 30px 30px;
    background: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -160px;
    width: 320px;
    margin-top: -200px;
    box-shadow: 0 5px 6px 2px #1520311a;
    border-radius: 4px;
    overflow: hidden;
    .anticon-close {
      position: absolute;
      right: 20px;
      top: 20px;
      font-size: 14px;
      opacity: 0.8;
      cursor: pointer;
    }
    h3 {
      font-weight: bold;
      color: #252933;
      font-size: 17px;
      padding-bottom: 20px;
    }
    .ant-form-horizontal {
      .ant-form-item {
        margin-bottom: 12px;
        &.input-image-code {
          margin-bottom: 6px;
          .ant-form-item-control {
            line-height: normal;
          }
        }
        .ant-form-item-children {
          display: flex;
          align-items: center;
          .code-input {
            width: 110px;
            margin-right: 10px;
          }
        }
      }
      .ant-btn-block {
        font-size: 14px;
        margin-top: 10px;
      }
      .login-type-list {
        display: flex;
        margin-top: 12px;
        p {
          font-size: 0;
          overflow: hidden;
          border-radius: 4px;
          img {
            width: 18px;
          }
          & + p {
            margin-left: 4px;
            cursor: pointer;
          }
        }
      }
      .tip {
        font-size: 12px !important;
        color: #999;
        margin-right: auto;
        span {
          color: var(--primary-color);
        }
      }
      .send-email-code {
        p {
          color: var(--primary-color);
          cursor: pointer;
          font-size: 12px;
        }
        span {
          color: #999;
          font-size: 12px;
        }
      }
    }
    .sacnqrcode-login-modal {
      text-align: center;
      .mini-web-code {
        width: 200px;
        height: 200px;
        position: relative;
        margin: 20px auto 0;
        img {
          width: 100%;
          display: block;
        }
        .finish-logo {
          position: absolute;
          width: 90px;
          height: 90px;
          border-radius: 50%;
          background: #fff;
          top: 55px;
          left: 55px;
          svg {
            position: relative;
            top: 10px;
            left: 4px;
            .finish-path {
              animation: move .7s ease-in-out 1;
            }
            @keyframes move {
              from {
                stroke-dasharray: 0 55;
              }
              to {
                stroke-dasharray: 55 0;
              }
            }
          }
        }
      }
      & > p {
        font-size: 12px;
        padding: 16px 0 12px;
      }
      span {
        font-size: 12px;
        color: #999;
        cursor: pointer;
      }
    }
  }
}

.emoji-popover {
  .emoji-picker {
    background-color: #fff !important;
    border: none !important;
    #Categories {
      background: #fff;
      padding: 6px 0px;
    }
    #Emojis {
      .container-emoji {
        padding: 0 10px;
        &::-webkit-scrollbar {
          display: none;
        }
        .grid-emojis {
          grid-template-columns: repeat(8, 12.5%) !important;
          .emoji {
            padding: 0 !important;
            font-size: 26px !important;
            line-height: 38.125px !important;
            height: 38.125px !important;
            width: 38.125px !important;
            text-align: center;
          }
        }
      }
    }
  }
}

.feedback-emoji-popover {
  p {
    padding: 6px;
    color: #000;
    cursor: pointer;
    display: inline-block;
    &:hover {
      background: rgb(248, 248, 248);
    }
  }
}

.preview-image-modal {
  .ant-modal {
    padding-bottom: 0;
    .ant-modal-content {
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      .eg-show-image {
        cursor: zoom-out;
      }
    }
  }
}

.article-export-menu {
  &-list {
    display: flex;
    &-item {
      cursor: pointer;
      text-align: center;
      padding: 4px 24px;
      border-radius: 2px;
      &:not(.disabled):hover {
        background: #fcf9f9;
      }
      img {
        display: block;
      }
      p {
        color: #000;
      }
      span {
        color: #999;
        font-size: 12px;
      }
      &.disabled {
        cursor: not-allowed;
        opacity: .5;
      }
    }
  }
}

.user-operate-tab {
  height: 48px;
  border-bottom: 1px solid #f1f1f1;
  display: flex;
  justify-content: flex-end;
  padding: 0 20px;
  align-items: center;
  background: #fff;
  & > div {
    margin-left: 20px;
    cursor: pointer;
    color: #4c4c4c;
    font-size: 12px;
    font-weight: 700;
    &.active {
      color: #000;
    }
  }
}

.setting-content {
  & > h3 {
    color: #000;
    font-weight: bold;
    font-size: 17px;
    letter-spacing: 2px;
    border-bottom: 1px solid #f1f1f1;
    padding: 15px 24px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    .btn {
      font-size: 12px;
      font-weight: 500;
      color: var(--primary-color);
      cursor: pointer;
    }
  }
}

.linear-border-top, .linear-border-bottom {
  position: relative;
  &:after {
    content: "";
    height: 1px;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, transparent 0%, #f1f1f1 50%, transparent 100%);
    position: absolute;
  }
  &.linear-border-top {
    &::after {
      top: 0;
    }
  }
  &.linear-border-bottom {
    &::after {
      bottom: 0;
    }
  }
}

.gloab-scroll-bar {
  overflow-y: overlay;
  &::-webkit-scrollbar {
    width: 4px;
  }
  &::-webkit-scrollbar-thumb {
    width: 4px;
    background-color: rgba(228, 230, 233, 0);
    border-radius: 2px;
    transition: .3s;
  }
  &::-webkit-scrollbar-track {
    background-color: transparent;
  }
  &:hover {
    &::-webkit-scrollbar-thumb {
      background-color: rgba(228, 230, 233, 1);
    }
  }
}

.user-level {
  width: 26px;
  height: 13px;
  margin-left: 6px;
  img {
    position: relative;
    top: -6px;
  }
}

.auth-create-list {
  padding: 6px 0;
  .list-item {
    padding: 8px 16px;
    font-size: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
    &:hover {
      background-color: #fafafa;
    }
    img {
      width: 18px;
      margin-right: 8px;
    }
    span {
      font-size: 14px;
      color: #4c4c4c;
    }
  }
}

.popover-block-select {
  padding: 8px 0;
  p {
    padding: 4px 12px;
    cursor: pointer;
    &:hover {
      background-color: var(--alaph-primary-color);
    }
  }
}

.resume-display-content {
  .modal {
    margin-bottom: 20px;
    .resume-modal-basic-info {
      padding: 20px 32px 0;
      .resume-content {
        display: flex;
        margin-top: 10px;
        .left-info-list {
          width: 0;
          flex: 1;
          margin-right: 12px;
          display: flex;
          flex-wrap: wrap;
          br {
            display: none;
          }
          .info-list-item {
            display: flex;
            width: 50%;
            padding: 4px 8px;
            font-size: 15px;
            &__name {
              color: #4c4c4c;
              flex-shrink: 0;
              width: 60px;
              text-align-last: justify;
              text-align: right;
              font-weight: 600;
            }
            em {
              font-style: normal;
              color: #000;
            }
            &__value {
              width: 0;
              flex: 1;
              color: #000;
            }
          }
        }
        .right-avatar {
          width: 110px;
          img {
            width: 100%;
            display: block;
          }
        }
      }
    }
    .resume-modal-other-info {
      padding: 0 32px;
      .resume-content {
        margin-top: 10px;
        padding: 0 10px;
        &:not(:nth-of-type(2)) {
          margin-top: 20px;
        }
        .sub-top-title {
          display: flex;
          justify-content: space-between;
          .label-item {
            font-weight: 600;
            color: #000;
            font-size: 15px;
          }
        }
        .edit-html-content {
          margin-top: 12px;
        }
      }
    }
    .show-resume-header {
      font-size: 0;
      &-title {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
      }
    }
  }
}

.xmind-content-list {
  display: flex;
  flex-wrap: wrap;
  .xmind-item {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #f1f1f1;
    background-color: #fff;
    cursor: pointer;
    width: ~"calc((100% - 24px) / 4)";
    margin-right: 8px;
    margin-bottom: 8px;
    position: relative;
    &:nth-child(4n) {
      margin-right: 0;
    }
    .top-logo {
      font-size: 0;
      background-color: #fff;
      position: relative;
      overflow: hidden;
      border-bottom: 1px solid #f1f1f1;
      padding: 8px;
      width: 100%;
      height: 100px;
      img {
        width: 100%;
      }
    }
    .recommand-tag {
      position: absolute;
      left: 0;
      top: 0;
    }
    .xmind-name {
      padding: 12px 4px 0 12px;
      display: flex;
      align-items: center;
      p {
        flex: 1;
        width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #000;
        font-size: 14px;
        font-weight: 500;
      }
    }
    .auth-info {
      padding: 0 8px 12px 12px;
      .profile {
        margin-top: 4px;
        flex-wrap: wrap;
        display: flex;
        align-items: center;
        .nickname {
          color: #333;
          font-size: 13px;
        }

      }
      .create-time {
        color: #999;
        font-size: 12px;
        text-align: right;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 10px;
        .view-count {
          font-size: 12px;
          color: #999;
          .ri-eye-line {
            margin-right: 4px;
            font-size: 13px;
          }
        }
      }
    }
  }
}
